package two_xia.ex9.Demo11;

abstract class Employee {
    private String name;
    private int workHours;
    private double baseSalary;

    public Employee(String name, int workHours, double baseSalary) {
        this.name = name;
        this.workHours = workHours;
        this.baseSalary = baseSalary;
    }

    public String getName() {
        return name;
    }

    public int getWorkHours() {
        return workHours;
    }

    public double getBaseSalary() {
        return baseSalary;
    }

    public abstract void accept(Visitor visitor);
}
